package com.zbkj.service.service;

import com.zbkj.common.request.MerchantStoreOrderFrontSaveRequest;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.model.agent.MerchantStoreOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.request.MerchantStoreOrderSaveRequest;
import com.zbkj.common.request.MerchantStoreOrderSearchRequest;
import com.zbkj.common.response.MerchantStoreOrderPageDataResponse;
import com.zbkj.common.response.MerchantStoreOrderDetailResponse;
import com.zbkj.common.response.OrderNoResponse;

import java.util.List;
/**
* @author Caiyc
* @description MerchantStoreOrderService 接口
* @date 2025-07-28
*/
public interface MerchantStoreOrderService extends IService<MerchantStoreOrder> {

    Boolean create(MerchantStoreOrderSaveRequest merchantStoreOrderSaveRequest);

    /**
     * 分页查询商户门店订单表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<MerchantStoreOrderPageDataResponse> getList(MerchantStoreOrderSearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 修改商户门店订单表
    * @param merchantStoreOrderRequest
    * @return
    */
    boolean update(MerchantStoreOrderSaveRequest merchantStoreOrderRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    MerchantStoreOrderDetailResponse getDetails(Integer id);

    OrderNoResponse createOrder(MerchantStoreOrderFrontSaveRequest request);

    void callBack(String orderNo);
}